﻿using System;
using System.Collections.Generic;
using System.Text;

using System.IO;
using System.Data;
using MySql.Data.MySqlClient;
using MySql.Data.Types;
using MySql.Data;
namespace Financieras
{
    class Manager
    {
        public bool updateBD() {
            StreamReader sr = File.OpenText("BD.sql");
            String str = sr.ReadToEnd();
            sr.Close();
            MySqlConnection Connection = new MySqlConnection("server=localhost;user id=root;password=1234;database=financieras");
            MySqlCommand Command = new MySqlCommand(str, Connection);
            if (Command.ExecuteNonQuery() > 0)
                return false;
            else
                return true;
        }

    }
}
